package com.vancouver.knows.business.tracker;

import com.pangu.task.IResultReceiver;
import com.pangu.task.OperateResult;
import com.pangu.tracker.AInvokeTracker;
import com.vancouver.knows.business.BusinessModule;
import com.vancouver.knows.business.Constants;

/**
 * pho工程的Tracker类的父类 Created by cxlin on 2015/5/21.
 */
public abstract class ABInvokeTracker extends AInvokeTracker {

	protected BusinessModule module;

	public ABInvokeTracker(BusinessModule module, IResultReceiver resultReceiver) {
		super(module.getAMApplication(), resultReceiver);
		this.module = module;
	}

	@Override
	protected void overHandleInvokeResult(OperateResult result) {
		if (result.getActionException() != null && result.getActionException().getExCode() == 7) {
			imContext.handleMobEmptyMessage(Constants.BUSINESS_STATUS_LOGIN_OVERTIME);
		}
	}
}
